package com.xbongbong.paas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.link.business.pojo.dto.LinkBusinessListDTO;
import com.xbongbong.pro.link.business.pojo.dto.LinkBusinessUpdateDTO;
import com.xbongbong.pro.link.business.pojo.vo.LinkBusinessGetVO;
import com.xbongbong.pro.link.business.pojo.vo.LinkBusinessListVO;
import com.xbongbong.pro.link.business.pojo.vo.LinkBusinessUpdateVO;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/10/30 15:09
 * @since v1.0
 */
public interface ProLinkBusinessService {

    /**
     * 获取列表
     * @param linkBusinessListDTO
     * @return
     * @throws XbbException
     */
    LinkBusinessListVO list(LinkBusinessListDTO linkBusinessListDTO) throws XbbException;

    /**
     * 更新、新建
     * @param linkBusinessUpdateDTO
     * @return
     * @throws XbbException
     */
    LinkBusinessUpdateVO update(LinkBusinessUpdateDTO linkBusinessUpdateDTO) throws XbbException;

    /**
     * 根据关联表单id和
     * @param corpid 公司id
     * @param attr 当前字段
     * @param formId 当前表单id
     * @param linkFormId 联动的表单id
     * @param businessType
     * @return
     */
    LinkBusinessGetVO getByLinkFormId(String corpid, String attr, Long formId, Long linkFormId, Integer businessType);

}
